package com.fmyexample.mcsecurityboot;

import com.fmyexample.mcsecurityboot.modular.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableCaching
public class McSecurityBootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(McSecurityBootApplication.class, args);
        context.getBean(UserService.class).init();
    }

}
